# CMakeLists.txt for absyntax_utils

# 设置库名称
set(LIBRARY_NAME absyntax_utils)

# 添加源文件
set(SOURCES
        absyntax_utils.cc
        add_en_eno_param_decl.cc
        decompose_var_instance_name.cc
        array_dimension_iterator.cc
        case_element_iterator.cc
        function_call_iterator.cc
        function_call_param_iterator.cc
        function_param_iterator.cc
        get_sizeof_datatype.cc
        get_var_name.cc
        search_il_label.cc
        search_base_type.cc
        search_fb_instance_decl.cc
        search_fb_typedecl.cc
        search_varfb_instance_type.cc
        search_var_instance_decl.cc
        spec_init_separator.cc
        type_initial_value.cc
        search_varfb_instance_type.cc
        search_var_instance_decl.cc
        spec_init_separator.cc
        type_initial_value.cc
        debug_ast.cc
        get_datatype_info.cc
)

# 创建静态库
add_library(${LIBRARY_NAME} STATIC ${SOURCES})

# 如果需要，可以包括其他目录（示例）
# target_include_directories(${LIBRARY_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)

# 设置编译选项（如有需要，可以从上一级CMakeLists.txt继承）
target_compile_options(${LIBRARY_NAME} PRIVATE ${COMMON_CXX_FLAGS} ${COMMON_CXX_WARNINGS})

# 添加编译选项到目标库
# target_compile_options(${LIBRARY_NAME} PRIVATE ${COMMON_CXX_FLAGS})
